<?php

function inflect($string)
{
    return str_replace(' ', '', ucwords(str_replace(array(
        '.',
        '-'
    ), ' ', $string)));
}

function deflect($string)
{
    return strtolower(trim(preg_replace('/([a-z0-9])([A-Z])/', '\1-\2', $string), '-. '));
}

function format_date($time)
{
    return date('d/m/Y', $time);
}

function format_datetime($time)
{
    return date('Y-m-d H:i:s', $time);
}
